import request from '@/utils/request'

// 查询WS群发配置列表
export function listChatWsMassConfig(query) {
  return request({
    url: '/business/chatWsMassConfig/list',
    method: 'get',
    params: query
  })
}

// 查询WS群发配置详细
export function getChatWsMassConfig(id) {
  return request({
    url: '/business/chatWsMassConfig/' + id,
    method: 'get'
  })
}

// 新增WS群发配置
export function addChatWsMassConfig(data) {
  return request({
    url: '/business/chatWsMassConfig',
    method: 'post',
    data: data
  })
}

// 修改WS群发配置
export function updateChatWsMassConfig(data) {
  return request({
    url: '/business/chatWsMassConfig',
    method: 'put',
    data: data
  })
}

// 删除WS群发配置
export function delChatWsMassConfig(id) {
  return request({
    url: '/business/chatWsMassConfig/' + id,
    method: 'delete'
  })
}
